PARSER=parser
DBG=debug
HTTP_SVR=http_server
cc=g++
P_LD_FLAG=-std=c++11 -lboost_system -lboost_filesystem -lpthread
S_LD_FLAG=-std=c++11 -ljsoncpp -lpthread

All: $(PARSER) $(DBG) $(HTTP_SVR)

$(PARSER):parser.cc
	$(cc) -o $@ $^ $(P_LD_FLAG)

$(DBG):debug.cc
	$(cc) -o $@ $^ $(S_LD_FLAG)

$(HTTP_SVR):http_server.cc
	$(cc) -o $@ $^ $(S_LD_FLAG)

.PHONY:clean
clean:
	rm -f $(PARSER) $(DBG) $(HTTP_SVR)
